home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sources.misc
- From: leo@s514.ipmce.su (Leonid A. Broukhis)
- Subject: v26i093: freeze - Freeze/melt compression program, Patch01.1
- Message-ID: <1991Nov30.211840.4862@sparky.imd.sterling.com>
- X-Md4-Signature: 7b8bf2408a08a597b37c3b32d5ecbee6
- Date: Sat, 30 Nov 1991 21:18:40 GMT
- Approved: kent@sparky.imd.sterling.com
-
- Submitted-by: leo@s514.ipmce.su (Leonid A. Broukhis)
- Posting-number: Volume 26, Issue 93
- Archive-name: freeze/patch01.1
- Environment: ISC, Xenix, SunOS, MS-DOS
- Patch-To: freeze: Volume 25, Issue 12-13
-
- Here is the file statist.1 that was missing from the last patch. Please
- cd into the freeze directory and unshar this file.
-
- ================================================================
- #! /bin/sh
- # This is a shell archive. Remove anything before this line, then feed it
- # into a shell via "sh file" or similar. To overwrite existing files,
- # type "sh file -c".
- # The tool that generated this appeared in the comp.sources.unix newsgroup;
- # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
- # Contents: statist.1
- # Wrapped by kent@sparky on Sat Nov 30 15:11:20 1991
- PATH=/bin:/usr/bin:/usr/ucb ; export PATH
- echo If this archive is complete, you will see the following message:
- echo ' "shar: End of archive."'
- if test -f 'statist.1' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'statist.1'\"
- else
- echo shar: Extracting \"'statist.1'\" \(3285 characters\)
- sed "s/^X//" >'statist.1' <<'END_OF_FILE'
- X.PU
- X.TH STATIST 1 local
- X.SH NAME
- Xstatist \- calculate Huffman distribution for
- X.IR freeze "(1)"
- X.SH SYNOPSIS
- X.ll +8
- X.B statist
- X[
- X.B \-g...
- X]
- X.ll -8
- X.br
- X.SH DESCRIPTION
- XThe default table is tuned for both C texts and executable files (as in
- XLHARC). If you will freeze any other files (natural language texts,
- Xdatabases, images, fonts, etc.) you can calculate the matching
- Xpositions distribution using the
- X.B "`statist'"
- Xprogram, which calculates and displays the mentioned
- Xdistribution for the given file. It is useful for large (100K or more)
- Xfiles.
- X
- XThough the built-in position table is polyvalent, the tuning can increase
- Xthe compression rate up to one additional percent. (Observed mainly on
- Xtext files.)
- X.SH USAGE
- X.br
- X.B statist [\-g...] < sample_file
- X.in +8
- Xor
- X.in -8
- X.B gensample | statist [\-g...]
- X.br
- Xwhere
- X.B "`gensample'"
- Xis a program generating some sample stream of
- Xbytes similar to files to be frozen.
- X.PP
- XThe
- X.B \-g
- Xswitch has the same meaning as for
- X.IR freeze "(1)"
- Xand may be repeated.
- X.PP
- XYou can also see the intermediate values
- Xand watch their changes by pressing INTR key when you wish.
- X.PP
- XNote: If you use
- X.B "gensample | statist"
- X, remember that INTR influence BOTH
- Xprocesses !!
- X.br
- XThe results have the following format:
- X.br
- X.I "n1 n2 n3 n4 n5 n6 n7 n8"
- X(uncertainty =
- X.I x)
- X.br
- XAverage match length:
- X.I xx.yy
- X.br
- XPercentile 99.9:
- X.I p999
- X.br
- XPercentile 99.5:
- X.I p995
- X.br
- XPercentile 99.0:
- X.I p990
- X.br
- XPercentile 97.0:
- X.I p970
- X.br
- XPercentile 95.0:
- X.I p950
- X.br
- XPercentile 90.0:
- X.I p900
- X.br
- XPercentile 80.0:
- X.I p800
- X.br
- XPercentile 70.0:
- X.I p700
- X.br
- XPercentile 50.0:
- X.I p500
- X.br
- XSigma:
- X.I xx.yy
- X.br
- X.PP
- XHere
- X.I n1 \- n8
- Xare values of the calculated position table elements,
- Xuncertainty is a number which denotes validity of given results
- X(non-zero values of uncertainty indicate that the
- Xresults may be unusable). Other values (average match length,
- Xpercentiles and sigma) are FYI only.
- X.PP
- XYou may create the
- X.IR /etc/default/freeze
- Xfile (if you don't like
- X.IR /etc/default/
- Xdirectory, choose another - in MS-DOS it is FREEZE.CNF in
- Xthe directory of FREEZE.EXE), which has the following format:
- X.in +8
- X.I name
- X=
- X.I "n1 n2 n3 n4 n5 n6 n7 n8"
- X.in -8
- X.I (name
- Xmust start in column 1). For example:
- X.ll +8
- X.br
- X---------- cut here -----------
- X.br
- X# This is freeze's defaults file
- X.br
- Xrussian=0 0 1 2 6 20 31 2 # The sample was mailx.lp (Russian)
- X.br
- Xenglish=0 0 1 2 7 16 36 0 # The sample was gcc.lp (English)
- X.br
- X# End of file
- X.br
- X---------- cut here -----------
- X.ll -8
- X.PP
- XIf you find values, which are better THAN DEFAULT both for text (C
- Xprograms) and binary (executable) files, please send them to me.
- X
- XImportant note: statist.c is NOT a part of freeze package, it is an
- Xaditional feature.
- X
- X.SH "SEE ALSO"
- Xfreeze(1), melt(1), fcat(1)
- X.SH "DIAGNOSTICS"
- XHuffman tree has more than 8 levels, reducing...
- X.in +8
- XSelf-explanatory, but sometimes reducing falls into infinite loop.
- X.in -8
- X.IR xxx K
- X.in +8
- XProgress indicator is written after each 4K of a file processed.
- X.in -8
- X.SH "BUGS"
- XSometimes use of the results with uncertainty = 1 (on a file)
- Xgives compression rate worse than default but use of the results
- Xwith uncertainty = 13 (on other file) works quite good.
- X.PP
- XFound bugs descriptions, incompatibilities, etc. please send to
- Xleo@s514.ipmce.su.
- X
- END_OF_FILE
- if test 3285 -ne `wc -c <'statist.1'`; then
- echo shar: \"'statist.1'\" unpacked with wrong size!
- fi
- # end of 'statist.1'
- fi
- echo shar: End of archive.
- exit 0
- ================================================================
- --
- Leonid A. Broukhis | 89-1-95 Liberty St. | "BROUKHIS" is Hebrew for
- +7 095 494 6241 (h)| Moscow 123481 Russia| "BENEDICTAE"
- +7 095 132 9475 (o)| (leo@s514.ipmce.su) |{...and the other says: "Fabulous!"}
-
-
- exit 0 # Just in case...
- --
- Kent Landfield INTERNET: kent@sparky.IMD.Sterling.COM
- Sterling Software, IMD UUCP: uunet!sparky!kent
- Phone: (402) 291-8300 FAX: (402) 291-4362
- Please send comp.sources.misc-related mail to kent@uunet.uu.net.
-